package com.oig.sys.msg.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.io.Serializable;


/**
 * @author wuxl
 * 任务日志
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_task_log")
@EntityListeners({AuditingEntityListener.class})
public class TbTaskLog implements Serializable {

	/**
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;

	/**
	 */
	@Column(name = "task_id")
	private Integer taskId;

	/**
	 * 0-日记 1-催办
	 */
	@Column(name = "log_type")
	private String logType;

	/**
	 */
	@Column(name = "log_content")
	private String logContent;

	/**
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "log_time")
	private java.util.Date logTime;

	/**
	 */
	@Column(name = "log_user_id")
	private Integer logUserId;

	/**
	 */
	@Column(name = "log_user_name")
	private String logUserName;
}
